﻿<%@ WebHandler Language="C#" Class="CategoryProduct_ToListbox" %>

using System;
using System.Web;
using System.Text;
using HNG.LIB.Controls;
using HNG.Portal.BLL;
using HNG.Portal.DAL;
using HNG.Portal.DAL.EntityClasses;
using HNG.Portal.DAL.FactoryClasses;
using HNG.Portal.DAL.HelperClasses;
using SD.LLBLGen.Pro.ORMSupportClasses;
using System.Web.UI.HtmlControls;
using System.Data;
public class CategoryProduct_ToListbox : IHttpHandler
{
    
    public void ProcessRequest (HttpContext context) {
        context.Response.ContentType = "text/html";
        StringBuilder sb = new StringBuilder();

        TblDanhMucSanPhamEntity _TblDanhMucSanPhamEntity = new TblDanhMucSanPhamEntity();
        _TblDanhMucSanPhamEntity.LangId = HNG.LIB.Localization.LocalizationUtils.GetCurrentLanguage();

        DataTable _dt = new TblDanhMucSanPhamManager().be_SelectToDropdownlist(_TblDanhMucSanPhamEntity);

        sb.Append(HNG.LIB.Ajax.JSONHelper.FromDataTable(_dt));

        context.Response.Write(sb.ToString());
    }
 
    public bool IsReusable {
        get {
            return false;
        }
    }

}